﻿namespace AutoDeployForSims.Model.Get10AnalogEnt
{
    public class AnalogDCCurve
    {
        //1=   1-J1, 1, 0, 0,
        //0.0000, 10.0000, 0.0010,  量程下限，上限，系数
        //2.0000,  定位电流报警上限 （定位功率上限）
        //0.0000,
        //1.0000, 动作次数
        //60,     分机号
        //788, 789, 开关量
        //0, 0.0000, 65535,
        //107,  65535,  660, 104, 105,
        //65535, 65535, 65535, 65535, 65535,  65535,
        //1.1000,  定位时长
        //0,  道岔电流曲线调序序号
        //1.2000, 1.3000  反位时长, 反位电流报警上限（反位功率上限）
        public int Id { get; set; }
        public string CurveName { get; set; }
        public string CurveType { get; set; }
        public string CurveADNumber { get; set; }
        public string CurveDisplayNumber { get; set; }
        public string CurveRangeLower { get; set; }
        public string CurveRangeUpper { get; set; }
        public string CurveCoefficient { get; set; }

        public string CurveNormalPosUpper { get; set; }
        public string CurveNormalPosLower { get; set; }
        public string CurveActionTimes { get; set; }
        public string CurveExtNum { get; set; }

        public string CurveSwitch1DBJ { get; set; }
        public string CurveSwitch2FBj { get; set; }

        public string CurveUnknow2 { get; set; }
        public string CurveUnknow3 { get; set; }
        public string CurveSwitchDGQH { get; set; }

        public string CurveSwitchDGQB { get; set; }
        public string CurveSwitchDGYL { get; set; }
        public string CurveSwitch1DQJ { get; set; }
        public string CurveSwitch6 { get; set; }
        public string CurveSwitch7 { get; set; }

        public string CurveYL1 { get; set; }
        public string CurveYL2 { get; set; }
        public string CurveYL3 { get; set; }
        public string CurveYL4 { get; set; }
        public string CurveYL5 { get; set; }
        public string CurveYL6 { get; set; }

        public string CurveNormalLast { get; set; }
        //道岔曲线调序编号
        public string CurveStoreNo { get; set; }

        public string CurveReverseLast { get; set; }
        public string CurveReversePosUpper { get; set; }

        public AnalogDCCurve(int id, string curveName, string curveType, string curveADNumber, string curveDisplayNumber, string curveRangeLower, string curveRangeUpper, string curveCoefficient, string curveNormalPosUpper, string curveNormalPosLower, string curveActionTimes, string curveExtNum, string curveSwitch1DBJ, string curveSwitch2FBj, string curveUnknow2, string curveUnknow3, string curveSwitchDGQH, string curveSwitchDGQB, string curveSwitchDGYL, string curveSwitch1DQJ, string curveSwitch6, string curveSwitch7, string curveYL1, string curveYL2, string curveYL3, string curveYL4, string curveYL5, string curveYL6, string curveNormalLast, string curveStoreNo, string curveReverseLast, string curveReversePosUpper)
        {
            Id = id;
            CurveName = curveName;
            CurveType = curveType;
            CurveADNumber = curveADNumber;
            CurveDisplayNumber = curveDisplayNumber;
            CurveRangeLower = curveRangeLower;
            CurveRangeUpper = curveRangeUpper;
            CurveCoefficient = curveCoefficient;
            CurveNormalPosUpper = curveNormalPosUpper;
            CurveNormalPosLower = curveNormalPosLower;
            CurveActionTimes = curveActionTimes;
            CurveExtNum = curveExtNum;
            CurveSwitch1DBJ = curveSwitch1DBJ;
            CurveSwitch2FBj = curveSwitch2FBj;
            CurveUnknow2 = curveUnknow2;
            CurveUnknow3 = curveUnknow3;
            CurveSwitchDGQH = curveSwitchDGQH;
            CurveSwitchDGQB = curveSwitchDGQB;
            CurveSwitchDGYL = curveSwitchDGYL;
            CurveSwitch1DQJ = curveSwitch1DQJ;
            CurveSwitch6 = curveSwitch6;
            CurveSwitch7 = curveSwitch7;
            CurveYL1 = curveYL1;
            CurveYL2 = curveYL2;
            CurveYL3 = curveYL3;
            CurveYL4 = curveYL4;
            CurveYL5 = curveYL5;
            CurveYL6 = curveYL6;
            CurveNormalLast = curveNormalLast;
            CurveStoreNo = curveStoreNo;
            CurveReverseLast = curveReverseLast;
            CurveReversePosUpper = curveReversePosUpper;
        }

        public override string ToString()
        {
            return "AnalogDCCurve{" +
                    "id=" + Id +
                    ", curveName='" + CurveName + '\'' +
                    ", curveType='" + CurveType + '\'' +
                    ", curveADNumber='" + CurveADNumber + '\'' +
                    ", curveDisplayNumber='" + CurveDisplayNumber + '\'' +
                    ", curveRangeLower='" + CurveRangeLower + '\'' +
                    ", curveRangeUpper='" + CurveRangeUpper + '\'' +
                    ", curveCoefficient='" + CurveCoefficient + '\'' +
                    ", curveNormalPosUpper='" + CurveNormalPosUpper + '\'' +
                    ", curveNormalPosLower='" + CurveNormalPosLower + '\'' +
                    ", curveActionTimes='" + CurveActionTimes + '\'' +
                    ", curveExtNum='" + CurveExtNum + '\'' +
                    ", curveSwitch1DBJ='" + CurveSwitch1DBJ + '\'' +
                    ", curveSwitch2FBj='" + CurveSwitch2FBj + '\'' +
                    ", curveUnknow2='" + CurveUnknow2 + '\'' +
                    ", curveUnknow3='" + CurveUnknow3 + '\'' +
                    ", curveSwitchDGQH='" + CurveSwitchDGQH + '\'' +
                    ", curveSwitchDGQB='" + CurveSwitchDGQB + '\'' +
                    ", curveSwitchDGYL='" + CurveSwitchDGYL + '\'' +
                    ", curveSwitch1DQJ='" + CurveSwitch1DQJ + '\'' +
                    ", curveSwitch6='" + CurveSwitch6 + '\'' +
                    ", curveSwitch7='" + CurveSwitch7 + '\'' +
                    ", curveYL1='" + CurveYL1 + '\'' +
                    ", curveYL2='" + CurveYL2 + '\'' +
                    ", curveYL3='" + CurveYL3 + '\'' +
                    ", curveYL4='" + CurveYL4 + '\'' +
                    ", curveYL5='" + CurveYL5 + '\'' +
                    ", curveYL6='" + CurveYL6 + '\'' +
                    ", curveNormalLast='" + CurveNormalLast + '\'' +
                    ", curveStoreNo='" + CurveStoreNo + '\'' +
                    ", curveReverseLast='" + CurveReverseLast + '\'' +
                    ", curveReversePosUpper='" + CurveReversePosUpper + '\'' +
                    '}';
        }
    }
}
